(() => {
    class Person {
        constructor(firstName, lastName) {
            this.firstName = firstName;
            this.lastName = lastName;
        }
        get fullName() {
            return this.firstName + this.lastName;
        }
        set fullName(val) {
            let firstName = val.split("")[0];
            let lastName = val.split("")[1];
            this.firstName = firstName;
            this.lastName = lastName;
        }
    }
    const person = new Person("张", "三");
    person.fullName = "李四";
    console.log(person);
})();
